import turtle as G


a= input('请输入on/off')
b= input("请输入on/off")
G.pensize(5)
G.pencolor("orange")
G.forward(50)
G.fillcolor('green')
G.begin_fill()
G.right(90)
G.forward(15)
G.left(90)
G.forward(50)
G.left(90)
G.forward(30)
G.left(90)
G.forward(50)
G.left(90)
G.forward(15)
G.left(90)
G.up()
G.forward(50)
G.down()
G.end_fill()
G.forward(100)
G.left(90)
G.forward(100)
G.left(90)
G.forward(200)
G.left(90)
G.forward(100)
G.penup()
G.goto(100, 100)

if a=='on' and a=='on':
    G.pencolor("yellow")
else :
    G.pencolor("black")
G.dot(40)
G.goto(50,100)
G.dot(15, 'green')
G.goto(155, 100)
G.dot(15, 'red')
G.pendown()


G.done()